package com.jt.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jt.pojo.Item;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ItemMapper extends BaseMapper<Item>{
    @Select("select * from tb_item order by updated limit #{startIndex},#{rows} ")
    List<Item> findItemByPage(int startIndex, int rows);

    void deleteItemByIds(Long[] ids);

    void updateStatus(Long[] ids, Integer status);
}
